<template>
  <div>
    <svg
      :class="{'is-active':isActive}"
      t="1492500959545"
      class="hamburger"
      style=""
      viewBox="0 0 1024 1024"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      p-id="1691"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      width="64"
      height="64"
      @click="toggleClick">
      <path d="M1102.502 907.508h-941.859c-24.402 0-44.149-20.538-44.149-45.99s19.748-45.99 44.149-45.99h941.859c24.402 0 44.149 20.538 44.149 45.99s-19.748 45.99-44.149 45.99zM1102.502 557.99h-941.859c-24.402 0-44.149-20.538-44.149-45.99s19.748-45.99 44.149-45.99h941.859c24.402 0 44.149 20.538 44.149 45.99s-19.748 45.99-44.149 45.99zM1102.502 208.47h-941.859c-24.402 0-44.149-20.539-44.149-45.99s19.748-45.99 44.149-45.99h941.859c24.402 0 44.149 20.538 44.149 45.99s-19.748 45.99-44.149 45.99z" fill="#ffffff" p-id="1615"/>
    </svg>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    },
    toggleClick: {
      type: Function,
      default: null
    }
  }
}
</script>

<style scoped>
.hamburger {
  display: inline-block;
  cursor: pointer;
  width: 20px;
  height: 20px;
  transform: rotate(90deg);
  transition: .38s;
  transform-origin: 50% 50%;
}
.hamburger.is-active {
  transform: rotate(0deg);
}
</style>
